package com.inspire.sms.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 腾讯云通讯配置
 */
@Configuration
@ConfigurationProperties(prefix="sms.channel.tencent")
public class TencentSMSConfig {

    /**
     * 短信应用商服务地址
     */
    private Integer appId;

    /**
     * 短信服务商应用公钥
     */
    private String appKey;

    /**
     * 短信服务商短信签名
     */
    private String sign ;

    public Integer getAppId() {
        return appId;
    }

    public void setAppId(Integer appId) {
        this.appId = appId;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    @Override
    public String toString() {
        return "TencentSMSConfig{" +
                "appId=" + appId +
                ", appKey='" + appKey + '\'' +
                ", sign='" + sign + '\'' +
                '}';
    }
}
